package com.settlement.system.model.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
* <p>
* 标准订单明细导入VO
* </p>
*
* @author huangrensen
* @since 2024-04-23
*/
@Schema
@Data
public class SysOrderDetailImportVo implements Serializable {
    @ExcelProperty(value = "Y3单号")
    private String yzNo;
    @ExcelProperty(value = "OMS单号")
    private String omsNo;
    @ExcelProperty(value = "发退货时间")
    private String opTime;
    @ExcelProperty(value = "下单时间")
    private String buyTime;
    @ExcelProperty(value = "原始主订单号")
    private String sourceMainNo;
    @ExcelProperty(value = "原始子订单号")
    private String sourceSubNo;
    @ExcelProperty(value = "店铺ID")
    private String storeId;
    @ExcelProperty(value = "PO单号")
    private String poNo;
    @ExcelProperty(value = "商品单价")
    private String price;
    @ExcelProperty(value = "发货数量")
    private String qty;
    @ExcelProperty(value = "发货金额")
    private String sendAmount;
    @ExcelProperty(value = "退货数量")
    private String returnQty;
    @ExcelProperty(value = "退货金额")
    private String returnAmount;
    @ExcelProperty(value = "品牌")
    private String brand;
    @ExcelProperty(value = "SKU")
    private String sku;
    @ExcelProperty(value = "商品名称")
    private String productName;
    @ExcelProperty(value = "订单状态")
    private String orderStatus;
    @ExcelProperty(value = "关联单号")
    private String linkNo;

    public static Map<String, String> getKeyMap(){
        Map<String, String> map = new HashMap<>();
        map.put("关联单号", "linkNo");
        map.put("业务日期", "businessDate");
        map.put("Y3单号", "yzNo");
        map.put("OMS单号", "omsNo");
        map.put("发退货时间", "opTime");
        map.put("下单时间", "buyTime");
        map.put("原始主订单号", "sourceMainNo");
        map.put("原始子订单号", "sourceSubNo");
        map.put("店铺ID", "storeId");
        map.put("PO单号", "poNo");
        map.put("商品单价", "price");
        map.put("发货数量", "qty");
        map.put("发货金额", "sendAmount");
        map.put("退货数量", "returnQty");
        map.put("退货金额", "returnAmount");
        map.put("品牌", "brand");
        map.put("SKU", "sku");
        map.put("商品名称", "productName");
        map.put("订单状态", "orderStatus");
        return map;
    }
}
